<div class="topmenu" id="topmenu">
<ul>
{section name=category loop=$CONTENT.tm_categories}
<li><a href="{$CONTEXT.URL}c/{$CONTENT.tm_categories[category].categories_link}">{$CONTENT.tm_categories[category].categories_name}</a>
{if $CONTENT.tm_categories[category].items}
<ul>
{section name=item loop=$CONTENT.tm_categories[category].items}
<li><a href="{$CONTEXT.URL}a/{$CONTENT.tm_categories[category].items[item].link}{$CONTEXT.URL_SUFFIX}">{$CONTENT.tm_categories[category].items[item].subject}</a></li>
{/section}
</ul>
{/if}
</li>
{/section}
</ul>
</div>
